package com.zjl.legendary.entity;

import com.alibaba.excel.annotation.ExcelProperty;

import java.util.Date;

/**
 * 题库实体类
 * @author zhoujingluo
 * @date 2021/5/27 8:31
 */
public class Question {
    private Integer id ;
    private Integer uid ;
    @ExcelProperty("title")
    private String title ;
    @ExcelProperty("answer")
    private String answer ;
    @ExcelProperty("type")
    private Integer type ;
    private Integer flag ;
    private Date ctime ;

    public Question() {
    }

    public Question(Integer uid, String title, String answer, Integer type, Integer flag, Date ctime) {
        this.uid = uid;
        this.title = title;
        this.answer = answer;
        this.type = type;
        this.flag = flag;
        this.ctime = ctime;
    }

    public Question(Integer id, Integer uid, String title, String answer, Integer type, Integer flag, Date ctime) {
        this.id = id;
        this.uid = uid;
        this.title = title;
        this.answer = answer;
        this.type = type;
        this.flag = flag;
        this.ctime = ctime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", uid=" + uid +
                ", title='" + title + '\'' +
                ", answer='" + answer + '\'' +
                ", type=" + type +
                ", flag=" + flag +
                ", ctime=" + ctime +
                '}';
    }
}
